package com.yzs.base.provider

import android.content.Context
import androidx.core.content.FileProvider

/**
 *    author : yzs
 *    date   : 2022/1/1211:50
 *    desc   :
 *
 *    <!-- App 内容提供者 用于存储 -->
<provider
android:name="com.ykwl.common.provider.AppFileProvider"
android:authorities="${applicationId}.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/app_provider_paths" />
</provider>
 */
class AppFileProvider : FileProvider() {
    companion object {
        fun getFileProviderName(context: Context): String {
            return context.packageName + ".provider"
        }
    }
}